 <div class="modal-header" id="scope">
	<h3 class="modal-title" >关联班次</h3>
</div>
<div class="modal-body">
	<form name="myForm" class="form-horizontal form-validation">
		<div class="panel panel-default">
			<div class="panel-body">
	     <div class="row wrapper m-n">
			<div class="form-group col-md-4">
				<div class="col-md-11">
					<div class="input-group">
						<ui-select ng-model="starList.selected" theme="bootstrap">
						<ui-select-match placeholder="始发客运站">{{$select.selected.name}}</ui-select-match>
						<ui-select-choices
							repeat="star in starList | propsFilter: {name: $select.search}">
						<span ng-bind-html=" star.name| highlight: $select.search"></span>
						</ui-select-choices> </ui-select>
						<span class="input-group-btn">
							<button ng-click="starList.selected = undefined"
								class="btn btn-default">
								<span class="glyphicon glyphicon-trash"></span>
							</button>
						</span>
					</div>
				</div>
			</div>
			<div class="form-group col-md-4">
				<div class="col-md-11">
					<input type="text" ng-model="queryMap.terminal" class="form-control"
						placeholder="终点站名称">
				</div>
			</div>
			<div class="form-group col-md-4" ng-controller="DatepickerDemoCtrl">
				<div class="col-md-11">
					<div class="input-group">
						<input type="text" class="form-control"
							datepicker-popup="{{format}}" is-open="opened"
							ng-model="timeDeparture.startTime"
							datepicker-options="dateOptions" close-text="Close"
							placeholder="发车日期" readOnly /> <span class="input-group-btn">
							<button type="button" class="btn btn-default"
								ng-click="open($event)">
								<i class="glyphicon glyphicon-calendar"></i>
							</button>
						</span>
					</div>
				</div>
			</div>	
			<div class="form-group col-md-1">
				<div class="col-md-11">
					<button type="button" class="btn btn-info" ng-click="query()">查询</button>
				</div>
			</div>
	</div>			
    <p style="margin-left: 20px;" >说明：输入条件查询，勾选班次点击提交即可。</p>
	<div class="table-responsive">
		<table class="table table-striped b-t b-light">
			<thead class="fixedThead">
				<tr>
					<th style="width: 10px;"><label class="i-checks m-b-none" >
							<input type="checkbox"  ng-model="ckAll"
							ng-click="checkAll(ckAll,list)"><i></i>
					</label></th>
					<th>班次号</th>
					<th>终点站</th>
					<th>发车日期</th>
					<th>发车时间</th>
				</tr>
			</thead>
			<tbody class="scrollTbody">
				<tr ng-repeat="shift in list">
					<td style="width: 10px;"><label class="i-checks m-b-none"> <input
							id="{{shift.ic}}" name="checks" type="checkbox" ng-checked="ckAll"
							ng-model="checks" ng-click="check(shift,checks)" value="{{shift.id}}"><i></i>
					</label></td>
					<td>{{shift.shiftNo}}</td>
					<td>{{shift.terminal}}</td>
					<td>{{shift.departureDate| date : 'yyyy-MM-dd'}}</td>
					<td>{{shift.departureTime| date : 'HH:mm:ss'}}</td>
				</tr>
			</tbody>
		</table>
	</div>
			</div>
			<footer class="panel-footer text-right bg-light lter">
				<button class="btn btn-default" type="button" ng-click="cancel()">取消</button>
				<button type="submit" class="btn btn-success" ng-click="ok()">提交</button>
			</footer>
		</div>
	</form>
</div>
<style>
.table{
            width: 100%;
            border-collapse:collapse; 
            border-spacing:0; 
        }
        .fixedThead{
            display: block;
            width: 100%;
        }
        .scrollTbody{
            display: block;
            height: 262px;
            overflow: auto;
            width: 100%;
        }
        .table td,.table th {
            width: 200px;
            border-bottom: none;
            border-left: none;
            padding: 3px 3px 3px 4px
        }
</style>